package com.siyuanren.gcocp.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class WxUserChapterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxUserChapterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNull() {
            addCriterion("available is null");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNotNull() {
            addCriterion("available is not null");
            return (Criteria) this;
        }

        public Criteria andAvailableEqualTo(Boolean value) {
            addCriterion("available =", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotEqualTo(Boolean value) {
            addCriterion("available <>", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThan(Boolean value) {
            addCriterion("available >", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("available >=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThan(Boolean value) {
            addCriterion("available <", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThanOrEqualTo(Boolean value) {
            addCriterion("available <=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableIn(List<Boolean> values) {
            addCriterion("available in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotIn(List<Boolean> values) {
            addCriterion("available not in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableBetween(Boolean value1, Boolean value2) {
            addCriterion("available between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("available not between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andStudyTimeIsNull() {
            addCriterion("study_time is null");
            return (Criteria) this;
        }

        public Criteria andStudyTimeIsNotNull() {
            addCriterion("study_time is not null");
            return (Criteria) this;
        }

        public Criteria andStudyTimeEqualTo(Date value) {
            addCriterionForJDBCDate("study_time =", value, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("study_time <>", value, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("study_time >", value, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("study_time >=", value, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeLessThan(Date value) {
            addCriterionForJDBCDate("study_time <", value, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("study_time <=", value, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeIn(List<Date> values) {
            addCriterionForJDBCDate("study_time in", values, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("study_time not in", values, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("study_time between", value1, value2, "studyTime");
            return (Criteria) this;
        }

        public Criteria andStudyTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("study_time not between", value1, value2, "studyTime");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNull() {
            addCriterion("course_id is null");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNotNull() {
            addCriterion("course_id is not null");
            return (Criteria) this;
        }

        public Criteria andCourseIdEqualTo(Integer value) {
            addCriterion("course_id =", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotEqualTo(Integer value) {
            addCriterion("course_id <>", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThan(Integer value) {
            addCriterion("course_id >", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_id >=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThan(Integer value) {
            addCriterion("course_id <", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThanOrEqualTo(Integer value) {
            addCriterion("course_id <=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdIn(List<Integer> values) {
            addCriterion("course_id in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotIn(List<Integer> values) {
            addCriterion("course_id not in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdBetween(Integer value1, Integer value2) {
            addCriterion("course_id between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("course_id not between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andChapterIdIsNull() {
            addCriterion("chapter_id is null");
            return (Criteria) this;
        }

        public Criteria andChapterIdIsNotNull() {
            addCriterion("chapter_id is not null");
            return (Criteria) this;
        }

        public Criteria andChapterIdEqualTo(Integer value) {
            addCriterion("chapter_id =", value, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdNotEqualTo(Integer value) {
            addCriterion("chapter_id <>", value, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdGreaterThan(Integer value) {
            addCriterion("chapter_id >", value, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_id >=", value, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdLessThan(Integer value) {
            addCriterion("chapter_id <", value, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_id <=", value, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdIn(List<Integer> values) {
            addCriterion("chapter_id in", values, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdNotIn(List<Integer> values) {
            addCriterion("chapter_id not in", values, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdBetween(Integer value1, Integer value2) {
            addCriterion("chapter_id between", value1, value2, "chapterId");
            return (Criteria) this;
        }

        public Criteria andChapterIdNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_id not between", value1, value2, "chapterId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdIsNull() {
            addCriterion("last_content_id is null");
            return (Criteria) this;
        }

        public Criteria andLastContentIdIsNotNull() {
            addCriterion("last_content_id is not null");
            return (Criteria) this;
        }

        public Criteria andLastContentIdEqualTo(Integer value) {
            addCriterion("last_content_id =", value, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdNotEqualTo(Integer value) {
            addCriterion("last_content_id <>", value, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdGreaterThan(Integer value) {
            addCriterion("last_content_id >", value, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("last_content_id >=", value, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdLessThan(Integer value) {
            addCriterion("last_content_id <", value, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdLessThanOrEqualTo(Integer value) {
            addCriterion("last_content_id <=", value, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdIn(List<Integer> values) {
            addCriterion("last_content_id in", values, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdNotIn(List<Integer> values) {
            addCriterion("last_content_id not in", values, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdBetween(Integer value1, Integer value2) {
            addCriterion("last_content_id between", value1, value2, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andLastContentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("last_content_id not between", value1, value2, "lastContentId");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteIsNull() {
            addCriterion("homework_complete is null");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteIsNotNull() {
            addCriterion("homework_complete is not null");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteEqualTo(Integer value) {
            addCriterion("homework_complete =", value, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteNotEqualTo(Integer value) {
            addCriterion("homework_complete <>", value, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteGreaterThan(Integer value) {
            addCriterion("homework_complete >", value, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("homework_complete >=", value, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteLessThan(Integer value) {
            addCriterion("homework_complete <", value, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteLessThanOrEqualTo(Integer value) {
            addCriterion("homework_complete <=", value, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteIn(List<Integer> values) {
            addCriterion("homework_complete in", values, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteNotIn(List<Integer> values) {
            addCriterion("homework_complete not in", values, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteBetween(Integer value1, Integer value2) {
            addCriterion("homework_complete between", value1, value2, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andHomeworkCompleteNotBetween(Integer value1, Integer value2) {
            addCriterion("homework_complete not between", value1, value2, "homeworkComplete");
            return (Criteria) this;
        }

        public Criteria andClockedIsNull() {
            addCriterion("clocked is null");
            return (Criteria) this;
        }

        public Criteria andClockedIsNotNull() {
            addCriterion("clocked is not null");
            return (Criteria) this;
        }

        public Criteria andClockedEqualTo(Integer value) {
            addCriterion("clocked =", value, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedNotEqualTo(Integer value) {
            addCriterion("clocked <>", value, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedGreaterThan(Integer value) {
            addCriterion("clocked >", value, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedGreaterThanOrEqualTo(Integer value) {
            addCriterion("clocked >=", value, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedLessThan(Integer value) {
            addCriterion("clocked <", value, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedLessThanOrEqualTo(Integer value) {
            addCriterion("clocked <=", value, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedIn(List<Integer> values) {
            addCriterion("clocked in", values, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedNotIn(List<Integer> values) {
            addCriterion("clocked not in", values, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedBetween(Integer value1, Integer value2) {
            addCriterion("clocked between", value1, value2, "clocked");
            return (Criteria) this;
        }

        public Criteria andClockedNotBetween(Integer value1, Integer value2) {
            addCriterion("clocked not between", value1, value2, "clocked");
            return (Criteria) this;
        }

        public Criteria andChapterScoreIsNull() {
            addCriterion("chapter_score is null");
            return (Criteria) this;
        }

        public Criteria andChapterScoreIsNotNull() {
            addCriterion("chapter_score is not null");
            return (Criteria) this;
        }

        public Criteria andChapterScoreEqualTo(Integer value) {
            addCriterion("chapter_score =", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreNotEqualTo(Integer value) {
            addCriterion("chapter_score <>", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreGreaterThan(Integer value) {
            addCriterion("chapter_score >", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_score >=", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreLessThan(Integer value) {
            addCriterion("chapter_score <", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_score <=", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreIn(List<Integer> values) {
            addCriterion("chapter_score in", values, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreNotIn(List<Integer> values) {
            addCriterion("chapter_score not in", values, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreBetween(Integer value1, Integer value2) {
            addCriterion("chapter_score between", value1, value2, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_score not between", value1, value2, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterStateIsNull() {
            addCriterion("chapter_state is null");
            return (Criteria) this;
        }

        public Criteria andChapterStateIsNotNull() {
            addCriterion("chapter_state is not null");
            return (Criteria) this;
        }

        public Criteria andChapterStateEqualTo(Integer value) {
            addCriterion("chapter_state =", value, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateNotEqualTo(Integer value) {
            addCriterion("chapter_state <>", value, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateGreaterThan(Integer value) {
            addCriterion("chapter_state >", value, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_state >=", value, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateLessThan(Integer value) {
            addCriterion("chapter_state <", value, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_state <=", value, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateIn(List<Integer> values) {
            addCriterion("chapter_state in", values, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateNotIn(List<Integer> values) {
            addCriterion("chapter_state not in", values, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateBetween(Integer value1, Integer value2) {
            addCriterion("chapter_state between", value1, value2, "chapterState");
            return (Criteria) this;
        }

        public Criteria andChapterStateNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_state not between", value1, value2, "chapterState");
            return (Criteria) this;
        }

        public Criteria andPlanTimeIsNull() {
            addCriterion("plan_time is null");
            return (Criteria) this;
        }

        public Criteria andPlanTimeIsNotNull() {
            addCriterion("plan_time is not null");
            return (Criteria) this;
        }

        public Criteria andPlanTimeEqualTo(Date value) {
            addCriterionForJDBCDate("plan_time =", value, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("plan_time <>", value, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("plan_time >", value, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("plan_time >=", value, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeLessThan(Date value) {
            addCriterionForJDBCDate("plan_time <", value, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("plan_time <=", value, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeIn(List<Date> values) {
            addCriterionForJDBCDate("plan_time in", values, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("plan_time not in", values, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("plan_time between", value1, value2, "planTime");
            return (Criteria) this;
        }

        public Criteria andPlanTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("plan_time not between", value1, value2, "planTime");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdIsNull() {
            addCriterion("video_progress_id is null");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdIsNotNull() {
            addCriterion("video_progress_id is not null");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdEqualTo(Integer value) {
            addCriterion("video_progress_id =", value, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdNotEqualTo(Integer value) {
            addCriterion("video_progress_id <>", value, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdGreaterThan(Integer value) {
            addCriterion("video_progress_id >", value, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("video_progress_id >=", value, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdLessThan(Integer value) {
            addCriterion("video_progress_id <", value, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdLessThanOrEqualTo(Integer value) {
            addCriterion("video_progress_id <=", value, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdIn(List<Integer> values) {
            addCriterion("video_progress_id in", values, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdNotIn(List<Integer> values) {
            addCriterion("video_progress_id not in", values, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdBetween(Integer value1, Integer value2) {
            addCriterion("video_progress_id between", value1, value2, "videoProgressId");
            return (Criteria) this;
        }

        public Criteria andVideoProgressIdNotBetween(Integer value1, Integer value2) {
            addCriterion("video_progress_id not between", value1, value2, "videoProgressId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}